<template>
  <div class="error-container">
    <h1>404 - 页面未找到</h1>
    <p>抱歉，您访问的页面不存在或已被移除。</p>
    <NuxtLink to="/">返回首页</NuxtLink>
  </div>
</template>

<script setup>
defineProps({
  error: Object,
});

useHead({
  title: "404 - 页面未找到",
});

if (process.server) {
  throw createError({ statusCode: 404, statusMessage: "Not Found" });
}
</script>

<style scoped>
.error-container {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
</style>
